package com.mybatisplus.demo.android.rep;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @lil
 * @创建时间 2020/1/13 14:13
 * @描述
 */
@Data
@ApiModel(value = "设备信息", description = "DeviceRep")
public class DeviceRep {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(name = "userId", notes = "用户id", dataType = "String", required = true)
    private String userId;
    @NotBlank(message = "设备编码不能为空")
    @Length(min = 6, message = "设备编码不能小于6位")
    @ApiModelProperty(name = "deveice_sn", notes = "设备编码", dataType = "String", required = true)
    private String deveice_sn;
    @ApiModelProperty(hidden = true)
    private String create_date;
    @ApiModelProperty(name = "deveice_name", notes = "设备名称", dataType = "String", required = true)
    private String deveice_name;
    @ApiModelProperty(hidden = true)
    private String update_date;
    @ApiModelProperty(name = "deveice_model", notes = "设备型号", dataType = "String", required = true)
    private String deveice_model;
    @ApiModelProperty(name = "deveice_type", notes = "设备类型", dataType = "String", required = true)
    private String deveice_type;
    @ApiModelProperty(name = "manufacturer", notes = "生产厂家", dataType = "String", required = true)
    private String manufacturer;
    @ApiModelProperty(name = "production_date", notes = "生产日期", dataType = "String", required = true)
    private String production_date;
    @ApiModelProperty(hidden = true)
    private int delete_tag;
    @ApiModelProperty(name = "deveice_state", notes = "设备状态", dataType = "String", required = true)
    private String deveice_state;

}
